import request from '../utils/Request';

const studentApi={
    // 条件查询带分页
    selectByCondition(pageNo,pageSize,searchStudent){
        return request({
            url:'/student/loadList',
            method:'post',
            params:{
                pageNo,
                pageSize,
            },
            data:searchStudent
        })
    },
    selectAllClass(){
        return request({
            url:'/student/loadAllClass',
            method:'get',
        })
    },
    addStudent(student){
        return request({
            url:'/student/addStudent',
            method:'post',
            data:student
        })
    }
}


export default studentApi
